import { get, post } from "./api";

//获取全部列表
export function getlist() {
	return new Promise((resolve, reject) => {
		get('/goodsx/goodslist').then(res => {
			resolve(res)
		}).catch(err => {
			reject(err)
		})
	})
}

//删除
export function dellist() {
	return new Promise((resolve, reject) => {
		get('/goodsx/delete').then(res => {
			resolve(res)
		}).catch(err => {
			reject(err)
		})
	})
}

//添加
export function addlist() {
	return new Promise((resolve, reject) => {
		post('/goodsx/delete').then(res => {
			resolve(res)
		}).catch(err => {
			reject(err)
		})
	})
}